﻿@*
    TicketDesk - Attribution notice
    Contributor(s):

         Stephen Redd (stephen@reddnet.net, http://www.reddnet.net)

    This file is distributed under the terms of the Microsoft Public
    License (Ms-PL). See http://opensource.org/licenses/MS-PL
    for the complete terms of use.

    For any distribution that contains code from this file, this notice of
    attribution must remain intact, and a copy of the license must be
    provided to the recipient.
*@

@using TicketDesk.Domain
@using TicketDesk.Domain.Model
@model TicketActivity
    @{
        var activities = Model.GetFlags().Where(f => ((TicketActivity)f) != TicketActivity.None);//exclude the none actiity
        foreach (var activity in activities)
        {
            var clickHandler = string.Format("window.editTicket.loadActivity('{0}');", activity);
            <button type="button" data-ticket-activity="@activity.ToString()" class="btn btn-default btn-sm" onclick="@clickHandler">@activity.GetDescription()</button>
        }
    }
